package com.neusoft.carsale.bean;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * 
 * @author hp
 *
 */
public class User extends Base{
	private Integer userNo;
	private String userName;
	private String nickName;
	private String salt;
	private String password;
	private String userPhone;
	private String userEmail;
	@JsonFormat(pattern ="yyyy-MM-dd",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date userDate;
	public User(Integer userNo, String userName, String nickName, String password, String userPhone, String userEmail,
			Date userDate) {
		super();
		this.userNo = userNo;
		this.userName = userName;
		this.nickName = nickName;
		this.password = password;
		this.userPhone = userPhone;
		this.userEmail = userEmail;
		this.userDate = userDate;
	}
	
	public User(Integer userNo, String userName, String nickName, String salt, String password, String userPhone,
			String userEmail, Date userDate) {
		super();
		this.userNo = userNo;
		this.userName = userName;
		this.nickName = nickName;
		this.salt = salt;
		this.password = password;
		this.userPhone = userPhone;
		this.userEmail = userEmail;
		this.userDate = userDate;
	}

	public User() {
		super();
	}
	public Integer getUserNo() {
		return userNo;
	}
	public void setUserNo(Integer userNo) {
		this.userNo = userNo;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getUserPhone() {
		return userPhone;
	}
	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}
	public String getUserEmail() {
		return userEmail;
	}
	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}
	public Date getUserDate() {
		return userDate;
	}
	public void setUserDate(Date userDate) {
		this.userDate = userDate;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}
	
}
